package net.yunzhanyi.generic.mapper;

import net.yunzhanyi.generic.domain.model.ClientAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author bestct
 */

@Mapper
public interface ClientAccountMapper {

    int deleteByPrimaryKey(Long aid);

    int insert(ClientAccount record);

    int insertSelective(ClientAccount record);

    ClientAccount selectByAid(Long aid);
    ClientAccount selectByPrimaryKey(Long aid);

    int updateByPrimaryKeySelective(ClientAccount record);

    int updateByPrimaryKey(ClientAccount record);

    ClientAccount selectByPhone(@Param("phone") String phone);

    ClientAccount selectByEmail(@Param("email") String email);

    ClientAccount selectByOpenid(@Param("openid") String openid);

    void updatePasswordByPrimaryKey(@Param("aid") long aid, @Param("password") String password);

    void updatePhoneByPrimaryKey(@Param("aid") long aid, @Param("phone") String phone);

    void updateEmailByPrimaryKey(@Param("aid") long aid, @Param("email") String email);
}
